/*
  Copyright 2014 The Oppia Authors. All Rights Reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

/* Bootstrap overrides and additions. */

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  color: #222;
}

h1, h2 {
  color: #000;
}

h3 {
  color: #222;
  line-height: 1.1;
}

a {
  color: #0844aa;
}

a:hover {
  color: #3f2c76;
}

.btn-primary {
  background: #092c66;
}

.btn-primary:hover {
  background: #3f2c76;
}

input.ng-dirty.ng-invalid {
  border: 1px solid red;
}

/*
  Override the Bootstrap default (which had the horizontal padding set to 20px
  on both sides, leading to alignment issues when nesting container-fluid
  elements in the exploration editor).
*/
.container-fluid {
  padding-right: 0;
  padding-left: 0;
}

.oppia-editor h3 {
  font-size: 18px;
  margin: 0;
}

.oppia-editor h4 {
  font-size: 14px;
  margin: 0;
}

.oppia-editor form {
  margin: 0;
}

.oppia-rule-ctrl {
  padding: 2px 3px;
}

p {
  line-height: 1.5;
  /* The following should be the same as the line-height (1.5). */
  margin: 1.5em 0;
  text-align: left;
  word-spacing: 0;
}

#wrapper {
  min-height: 100%;
  position: relative;
}

/*
  The following rule ensures that, as the viewport gets
  smaller, any media will scale down according to its
  container's width.
*/
img, video, canvas {
  max-width: 100%
}

textarea {
  width: 90%;
}

/*
  This is needed for proper display of tabs. See

  https://github.com/angular-ui/bootstrap/commit/8620aedba99b05822311
*/
.nav, .pagination {
  cursor: pointer;
}

.navbar {
  margin-bottom: 20px;
}

.navbar .nav > li > a, .navbar .brand {
  color: white;
  text-shadow: 0 1px 0 #092c66;
}

.navbar .brand {
  font-weight: bold;
}

.navbar .brand:hover {
  text-shadow: 0 1px 2px #000;
}

.brand sup {
  font-size: .6em;
}

.navbar .nav > li > a:hover {
  background: rgb(10, 48, 106);
  color: white;
}

.navbar .nav > li.active > a, .navbar .nav > li.active > a:hover {
  color: white;
  background: rgb(2, 38, 86);
}

.navbar-static-top .navbar-inner {
  background: #18447E;
  border-bottom: 1pt solid #2f2f3f;
  box-shadow: 0 1px 5px rgba(12,12,24, .3);
}

.oppia-editor-header {
  font-size: 110%;
  font-variant: small-caps;
}

.oppia-editor-section-header {
  color: black;
  cursor: pointer;
  text-decoration: none;
}
.oppia-editor-section-header:hover {
  color: black;
  text-decoration: none;
}

.oppia-align-center {
  float: none;
  margin: 0 auto;
  text-align: center;
}

.oppia-no-scroll::-webkit-scrollbar {
  display: none;
}

.oppia-save-exploration-button {
  font-size: 110%;
  font-variant: small-caps;
  font-weight: bold;
  margin: 0 5px 0 5px;
}

.oppia-code {
  font-family: Consolas, Monaco, Lucida Console, Liberation Mono, monospace;
}

.oppia-loading-fullpage {
  border: 1px;
  border-radius: 5px;
  font-size: 200%;
  height: 100%;
  position: fixed;
  top: 35%;
  width: 100%;
  z-index: 1000;
}
.oppia-loading-dot-one {
  opacity: 0;
  animation: dot 1.5s infinite;
  animation-delay: 0.0s;
  -moz-animation: dot 1.5s infinite;
  -moz-animation-delay: 0.0s;
  -webkit-animation: dot 1.5s infinite;
  -webkit-animation-delay: 0.0s;
}
.oppia-loading-dot-two {
  opacity: 0;
  animation: dot 1.5s infinite;
  animation-delay: 0.3s;
  -moz-animation: dot 1.5s infinite;
  -moz-animation-delay: 0.3s;
  -webkit-animation: dot 1.5s infinite;
  -webkit-animation-delay: 0.3s;
}
.oppia-loading-dot-three {
  opacity: 0;
  animation: dot 1.5s infinite;
  animation-delay: 0.6s;
  -moz-animation: dot 1.5s infinite;
  -moz-animation-delay: 0.6s;
  -webkit-animation: dot 1.5s infinite;
  -webkit-animation-delay: 0.6s;
}
@-webkit-keyframes dot {
  0% { opacity: 0; }
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes dot {
  0% { opacity: 0; }
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-keyframes dot {
  0% { opacity: 0; }
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.oppia-gallery {
  background-color: #f6f6f6;
  border: 1px solid #bbb;
  border-radius: 3px;
}

.oppia-gallery-menu {
  border-right: 1px solid #bbb;
  float: left;
  min-height: 600px;
  padding: 10px 15px 0 15px;
  width: 150px;
}
.oppia-gallery-menu-title {
  font-size: 120%;
  padding: 12px 0;
}

.oppia-gallery-tiles-container {
  background-color: white;
  border-radius: 3px;
  height: 100%;
  /* This is the same as the min-height in .oppia-gallery-menu. */
  min-height: 600px;
}

.oppia-gallery-tile {
  background-color: #f6f6f6;
  border: 1px solid #CCC;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(100,100,100,0.5);
  display: block;
  float: left;
  margin: 7px;
  min-width: 200px;
  width: 30%;
}

.oppia-gallery-tile-top, .oppia-gallery-tile-bottom {
  padding: 0 10px;
}
.oppia-gallery-tile-top:hover {
  background-color: #ddd;
}
.oppia-gallery-tile-bottom {
  padding-bottom: 5px;
  white-space: nowrap;
}

.oppia-gallery-tile-anchor:hover {
  text-decoration: none;
}

.oppia-gallery-tile-description {
  padding: 10px 0;
}

.oppia-gallery-tile-title {
  color: #888;
  font-size: 120%;
  font-weight: bold;
}
.oppia-gallery-tile-title:hover {
  text-decoration: none;
}
.oppia-gallery-tile-top:hover .oppia-gallery-tile-title {
  color: black;
}

.oppia-gallery-tile-play {
  float: right;
  opacity: .5;
  -webkit-transform: scale(1.5, 1.5);
  -moz-transform: scale(1.5, 1.5);
  transform: scale(1.5, 1.5);
}

.oppia-gallery-tile-top:hover .oppia-gallery-tile-play {
  opacity: 1;
}

.oppia-page-title {
  color: #222;
  font-size: 30px;
  margin: 0 0 20px 0;
}

.oppia-content {
  margin: 0 auto;
  max-width: 700px;
  -webkit-overflow-scrolling: touch;
  width: 80%;
}

.oppia-iframe-container {
  -webkit-overflow-scrolling: touch;
}

.oppia-alert-blocks {
  position: fixed;
  width: 80%;
  z-index: 3000;
}

.oppia-reader-response-container {
  background-color: #c8e7f7;
  border-radius: 6px;
  margin: 15px 0;
  padding: 5px 0;
}
.oppia-reader-response {
  font-style: italic;
  margin: 5px 20px;
}

.oppia-conversation-log {
  margin-top: 30px;
  opacity: 0.7;
}
.oppia-response {
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  margin-top: 30px;
  padding: 10px 10px;
}
.oppia-response-finished {
  background: rgb(228,255,228);
  border-radius: 6px;
  margin-top: 30px;
  padding: 10px 10px;
}

.oppia-btn {
  background-image: -webkit-linear-gradient(top, rgba(255, 204, 139, 0.5), rgba(230, 167, 93, 0.5));
  background-image: -moz-linear-gradient(top, rgba(255, 204, 139, 0.5), rgba(230, 167, 93, 0.5));
  background-image: linear-gradient(top, rgba(255, 204, 139, 0.5), rgba(230, 167, 93, 0.5));
  border-radius: 3px;
  font: bold 14px/20px Arial, sans-serif;
  padding: 4px 10px;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.15);
  text-transform: uppercase;
}

.oppia-btn:hover {
  background: rgb(255, 177, 84);
}

.oppia-small-font {
  font-size: 1.0em;
}

.oppia-editor-prerequisites-form {
  background: #eee;
  border-radius: 5px;
  padding: 5px;
}

.oppia-license {
  border: 1px solid black;
  padding: 0 30px 0 30px;
  margin-bottom: 10px;
}

.oppia-editor-reference {
  border: 1px solid black;
  border-radius: 5px;
  padding: 2px 10px;
}

/* Adds to existing Bootstrap CSS rule. */
.alert-block {
  border: 1px solid black;
  -moz-border-radius: 5px;
  -webkit-border-radius: px;
  border-radius: 5px;
  -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.2em;
  margin: 0 25% 0 25%;
  opacity: 1;
  width: 80%;
  z-index: 3000;
}

.oppia-form input.ng-invalid.ng-dirty {
  border: 2px solid #FA787E;
}

.oppia-form input.ng-valid.ng-dirty {
  border: 2px solid #78FA89;
}

.oppia-contribute-gallery-announcement {
   border: 1px dashed black;
   border-radius: 5px;
   margin: 20px;
   padding: 10px;
}

.oppia-gallery-frame {
  border-radius: 20px;
  margin: 10px;
  padding: 10px;
  width: 100%;
}

.oppia-lightly-grayed {
  color: #888;
}

.oppia-grayed {
  color: gray;
  opacity: 0.5;
}

.oppia-rte-inactive {
  border: 1px solid #ddd;
  background-color: #eee;
  padding: 2px;
}

.oppia-help {
  height: 16px;
  width: 16px;
}

.oppia-main-body {
  height: 100%;
  margin: 0 auto -4em;
  min-height: 100%;
  padding-bottom: 3em;
}

.oppia-footer {
  border-top: 1pt solid #dde0FF;
  bottom: 5px;
  height: 3em;
  margin-top: 30px;
  margin-bottom: 10px;
  max-height: 3em;
  position: absolute;
  width: 100%;
}

.oppia-footer-nav {
  list-style: none;
  margin-left: 0;
  margin-bottom: 0;
  padding-top: 10px;
}

.oppia-footer-nav li {
  display: inline-block;
}

.oppia-footer-nav a {
  padding: 10px 20px 10px 0;
}

.oppia-footer-nav a:hover {
  background: none;
  text-decoration: underline;
}

.oppia-exploration-header {
  padding-left: 7px;
}
.oppia-exploration-header-sublink {
  padding-top: 5px;
}

.oppia-wide-panel {
  border: 1px solid #dde0FF;
  border-radius: 20px;
  width: 100%;
}

.oppia-wide-panel-content, .oppia-about {
  font-size: large;
  margin: 5px auto;
  min-height: 400px;
  padding: 20px;
}

.oppia-about {
  margin-top: 0;
}

.oppia-wide-panel-title {
  color: #062770;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 24pt;
  font-weight: bold;
  margin-bottom: 30px;
}

.oppia-btn-container {
  padding: 10px;
}

.oppia-warning {
  background: #F9EDBE;
  width: 80%;
  max-width: 700px;
}

.oppia-cursor-pointer {
  cursor: pointer;
}

.oppia-selected-accordion-item {
  opacity: 0.5;
  padding: 3px;
}

.oppia-unselected-accordion-item {
  cursor: pointer;
  padding: 3px;
}
.oppia-unselected-accordion-item:hover {
  background-color: #18447e;
  border-radius: 5px;
  color: white;
}

.oppia-placeholder {
  color: gray;
}

.oppia-state-name-container {
  padding: 2px;
  width: 60%;
}

.oppia-editable {
  border: 1px dotted gray;
  cursor: pointer;
  padding: 1px 3px;
}
.oppia-editable::after {
  /* The Unicode characters below represent spaces. */
  content: '\00a0\00a0\00a0\00a0\00a0 ✎';
}
.oppia-editable:hover {
  border: 1px solid #111;
  opacity: 0.95;
}

.oppia-state-editor-container {
  min-height: 800px;
  position: relative;
}

.oppia-state-editor {
  background-color: white;
  border: 3px solid black;
  border-radius: 5px;
  height: 88%;
  position: fixed;
  right: 0;
  top: 10%;
  width: 70%;
  z-index: 100;
}

.oppia-state-editor-header {
  background: #ddd;
  max-height: 7%;
  padding: 1px 10px;
}

.oppia-state-editor-body {
  max-height: 90%;
  overflow-y: scroll;
  padding: 5px 10px;
  position: relative;
}

.oppia-state-content {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-top: 1px dashed #ddd;
  min-height: 20px;
  padding: 5px 10px 15px 10px;
}

.oppia-interactive-widget-display {
  border-bottom: 1px dashed #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  margin: 0 0 2px 0;
  padding: 15px 10px 5px 10px;
}

.oppia-preview {
  opacity: 0.7;
}

/* Styles for the state graph vizualization. */

.oppia-graph-viz path.link {
  fill: none;
  stroke: #666;
  stroke-width: 1.5px;
}

.oppia-graph-viz ellipse {
  fill: #ccc;
  stroke: #333;
  stroke-width: 1.5px;
}

.oppia-graph-viz text {
  font: 12px sans-serif;
  pointer-events: none;
}

.oppia-graph-viz text.shadow {
  stroke: #fff;
  stroke-width: 3px;
  stroke-opacity: .8;
}

.oppia-graph-viz .node rect {
  fill: #fff;
  fill-opacity: .5;
  stroke-width: 0px;
}

.oppia-graph-viz .clickable {
  cursor: pointer;
}

/* Styles for interactive widgets. */

.oppia-rule {
  height: 30px;
}

/* Styles for the statistics page. */

.oppia-stats-table {
  border: 1px solid black;
  padding: 10px;
}

@media screen and (max-width: 460px) {
  .pull-right {
    float: none;
    width: auto;
  }

  .oppia-hide-if-small-screenwidth {
    display: none;
  }
}

.oppia-feedback-button {
  transition-property: all;
  transition-duration: 0.2s;
  align-content: center;
  background: green;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  bottom: 10px;
  box-shadow: -5px 5px 3px #CCCCCC;
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  height: 90px;
  left: 0;
  opacity: 0.75;
  position: fixed;
  top: 50%;
  width: 100px;

  -moz-transform-origin: 25px 75px;
  -ms-transform-origin: 25px 75px;
  -o-transform-origin: 25px 75px;
  -webkit-transform-origin: 25px 75px;
  transform-origin: 25px 75px;

  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}
.oppia-feedback-button:hover {
  opacity: 1;
  -moz-transform-origin: 35px 65px;
  -ms-transform-origin: 35px 65px;
  -o-transform-origin: 35px 65px;
  -webkit-transform-origin: 35px 65px;
  transform-origin: 35px 65px;
}

.label-info {
  background-color: #18447E;
}

.oppia-rule-bubble {
  background: #18447E;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 3px;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.oppia-rule-bubble-warning {
  background: #F9EDBE;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 3px;
  color: #000;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.oppia-rule-bubble-description-picker {
  background: #89B5F0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 3px;
  color: #000;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.oppia-feedback-bubble {
  background: #E0E0E0;
  border-bottom-left-radius: 8px;
  padding: 5px;
  width: 80%;
}

.oppia-dest-bubble {
  background: #EEEEEE;
  border-bottom-right-radius: 8px;
  padding: 5px;
  width: 20%;
}

.oppia-logo {
  height: 32px;
  margin-top: -10px;
  margin-bottom: -5px;
}

.oppia-splash-image-row {
  margin-top: -20px;
}
.oppia-splash-image {
  width: 100%;
}

.oppia-splash p {
  font-size: 1.4em;
  margin-top: .5em;
  padding-left: 10px;
  padding-right: 10px;
}

.oppia-splash .btn {
  margin-top: .5em;
  display: block;
}

.oppia-splash-highlight {
  padding: 10px 0;
  background: #dde0FF;
  margin-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.help {
  font-size: .85em;
  color: #999;
}

.row {
  margin-bottom: 10px;
}

#sample-exploration {
  padding-left: 10px;
  padding-right: 10px;
}
#sample-exploration iframe {
  border: 2pt solid #dde0FF;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}

.icon {
  height: 1.6em;
}

.about-tabs {
  margin-bottom: 0;
}

.nav-pills#navTabs > .active > a,
.nav-pills#navTabs > .active > a:hover,
.nav-pills#navTabs > .active > a:focus {
  color: #ffffff;
  background-color: #18447E;
}
